
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { Form, NgFormControl, NgChildForm, NgChildFormArray, NgValidateForm } from '@farris/devkit';
import { DateConverter, MultiLangConverter } from '@farris/kendo-binding';

@Injectable()
@NgValidateForm({
    formGroupName: '人员管理',
    enableValidate: true
})

@Injectable()
export class DetailFormComponentViewmodelForm extends Form {
    @NgFormControl({
        id: 'code_8bc242d5_20e1',
        name: "{{code_8bc242d5_20e1}}",
        binding: 'code',
        updateOn: 'blur',
        defaultI18nValue: '编号',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            },
            {
                type: 'matches',
                constraints: [''],
            }
        ]
    })
    code: FormControl;

    @NgFormControl({
        id: 'remark_5b9783f6_12zj',
        name: "{{remark_5b9783f6_12zj}}",
        binding: 'remark',
        updateOn: 'blur',
        defaultI18nValue: '备注',
    })
    remark: FormControl;

    @NgFormControl({
        id: 'ryzj_67143786_bqfn',
        name: "{{ryzj_67143786_bqfn}}",
        binding: 'ryzj',
        updateOn: 'blur',
        defaultI18nValue: '人员职级',
        validRules: [
            {
                type: 'required',
                constraints: [true],
            }
        ]
    })
    ryzj: FormControl;

}